package com.crawler.pojo;

/**
 * 页面类型
 */
public enum PageType {
	
	/*****获取验证码*****/
	PAGE_CHECKCODE(1,"https://kyfw.12306.cn/otn/passcodeNew/getPassCodeNew?module=login&rand=sjrand&0."+System.currentTimeMillis(),""),
	/*****校验验证码*****/
	PAGE_CHECKCODEANSYN(1,"https://kyfw.12306.cn/otn/passcodeNew/checkRandCodeAnsyn",""),
	/****获取动态Token******/
	PAGE_TOKEN(1,"https://kyfw.12306.cn/otn/login/init",""),
	/****登陆******/
	PAGE_LOGIN(1,"https://kyfw.12306.cn/otn/login/loginAysnSuggest",""),
	/****已完成订单******/
	PAGE_ORDER(2,"https://kyfw.12306.cn/otn/queryOrder/init",""),
	/****未完成订单******/
	PAGE_ORDER_NOCOMPLETE(3,"https://kyfw.12306.cn/otn/queryOrder/initNoComplete",""),
	/****常用联系人******/
	PAGE_CONTACT(4,"https://kyfw.12306.cn/otn/passengers/init",""),
	/****用户信息******/
	PAGE_USERINFO(6,"https://kyfw.12306.cn/otn/modifyUser/initQueryUserInfo",""),
	/****登出******/
	PAGE_LOGOUT(6,"https://kyfw.12306.cn/otn/login/loginOut","");
	
	private String url;
	private int step;
	private String loginName;
	
	PageType() {
	}
	
	PageType(int step,String url,String loginName) {
		this.step = step;
		this.url = url;
		this.loginName = loginName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getStep() {
		return step;
	}

	public void setStep(int step) {
		this.step = step;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

}
